home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / btoken.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.0 KB  |  48 lines

  1. /* Copyright (C) 1990, 2000 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: btoken.h,v 1.4 2000/09/19 19:00:09 lpd Exp $ */
  20. /* Definitions for Level 2 binary tokens */
  21.  
  22. #ifndef btoken_INCLUDED
  23. #  define btoken_INCLUDED
  24.  
  25. /*
  26.  * Define accessors for pointers to the system and user name tables
  27.  * (arrays).  Note that these refer implicitly to i_ctx_p.  Note also
  28.  * that these pointers may be NULL: clients must check this.
  29.  */
  30. #define system_names_p (gs_imemory.space_global->names_array)
  31. #define user_names_p (gs_imemory.space_local->names_array)
  32.  
  33. /* Create a system or user name table (in the stable memory of mem). */
  34. int create_names_array(P3(ref **ppnames, gs_memory_t *mem,
  35.               client_name_t cname)); /* in zbseq.c */
  36.  
  37. /* Convert an object to its representation in a binary object sequence. */
  38. int encode_binary_token(P5(i_ctx_t *i_ctx_p, const ref *obj, long *ref_offset,
  39.                long *char_offset, byte *str)); /* in iscanbin.c */
  40.  
  41. /* Define the current binary object format for operators. */
  42. /* This is a ref so that it can be managed properly by save/restore. */
  43. #define ref_binary_object_format_container i_ctx_p
  44. #define ref_binary_object_format\
  45.   (ref_binary_object_format_container->binary_object_format)
  46.  
  47. #endif /* btoken_INCLUDED */
  48.